import { createRouter, createWebHistory } from 'vue-router'
import Home from '@/views/Home.vue'
import UserManagement from '@/views/UserManagement.vue'
import AreaManagement from '@/views/AreaManagement.vue'
import CleanerManagement from '@/views/CleanerManagement.vue'
import TaskManagement from '@/views/TaskManagement.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/users',
    name: 'UserManagement',
    component: UserManagement
  },
  {
    path: '/areas',
    name: 'AreaManagement',
    component: AreaManagement
  },
  {
    path: '/cleaners',
    name: 'CleanerManagement',
    component: CleanerManagement
  },
  {
    path: '/tasks',
    name: 'TaskManagement',
    component: TaskManagement
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router